package com.itcast.springboot.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author 郭泽鹏
 * @Date 2020/8/23 10:19
 * @Version 1.0
 * @Description 用户订单类返回数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserOrder对象", description="用户订单返回数据")
public class MyOrderRes implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "订单编号")
    private String orderNum;

    @ApiModelProperty(value = "订单状态：0：表示订单未接，1：订单已接，2：订单已完成")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单预约的最早时间")
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderEtime;

    @ApiModelProperty(value = "合计")
    private Integer orderTotal;

    @ApiModelProperty(value = "废品图片路径")
    private List<String> wasteUrl;
}
